package com.kai.steering.data.service.service.impl;

import com.kai.steering.common.web.service.impl.BaseServiceImpl;
import com.kai.steering.data.service.entity.domainObject.WarehouseTestDO;
import com.kai.steering.data.service.entity.po.Warehouse;
import com.kai.steering.data.service.entity.po.WarehouseTest;
import com.kai.steering.data.service.mapper.WarehouseMapper;
import com.kai.steering.data.service.mapper.WarehouseTestMapper;
import com.kai.steering.data.service.service.WarehouseService;
import com.kai.steering.data.service.service.WarehouseTestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class WarehouseTestServiceImpl extends BaseServiceImpl<WarehouseTestMapper, WarehouseTest> implements WarehouseTestService {
    @Override
    public WarehouseTestDO saveWarehouse(WarehouseTestDO warehouseTestDO) {

        WarehouseTest warehouseTest = new WarehouseTest(warehouseTestDO);
        boolean save = save(warehouseTest);
        WarehouseTestDO newWarehouseTestDO = new WarehouseTestDO(warehouseTest);
        return newWarehouseTestDO;
    }
}
